package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.DeviceElectricRunningData;
import com.sxhalo.fsms.mapper.DeviceElectricRunningDataMapper;
import com.sxhalo.fsms.service.IElectricRunningDataService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ElectricRunningDataServiceImpl implements IElectricRunningDataService {

	@Autowired
	private DeviceElectricRunningDataMapper mapper;

	@Override
	public Integer insertSelective(DeviceElectricRunningData record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(DeviceElectricRunningData record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public DeviceElectricRunningData selectByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<DeviceElectricRunningData> findWhereList(String where, String order) {
		return mapper.findWhereList(where,order);
	}

	@Override
	public Integer getCount(String where) {
		return null;
	}

	@Override
	public List<DeviceElectricRunningData> findPagerList(Integer start, Integer length, String where, String order) {
		return null;
	}


	@Override
	public Integer foreachInsert(List<DeviceElectricRunningData> list) {
		if(list.size()==0){
			return null;
		}
		return mapper.foreachInsert(list);
	}
}
